package cz.mzk.funnylib.dao.mockup;

import cz.mzk.funnylib.dao.UserDAO;
import cz.mzk.funnylib.entities.User;
import java.util.List;

/**
 *
 * @author xrosecky
 */
public class UserDAOMockup implements UserDAO {

    private User user;

    public UserDAOMockup() {
        user = new User();
        user.setId(1L);
        user.setName("dumb");
        user.setPassword("test");
        user.setSurname("test");
    }

    public User getUserById(Long id) {
        return user;
    }

    public User getUserByLogin(String login) {
        return user;
    }

    public void persist(User user) {
    }

    public List<User> getUsers() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
